package com.dubbo.cp.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
//@ImportResource("classpath:provider.xml")
public class ProviderApplication {

	public static void main(String[] args) {

		ConfigurableApplicationContext  context=SpringApplication.run(ProviderApplication.class, args);
		String s=context.getEnvironment().getProperty("dubbo.registry.address");
		System.out.println(s);
	}

}
